<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>

<body>
<script>

var s = "abcdez";		// 字符串直接量
var r = /[abce-z]/g; 	// 字符类包含字符a、b、c，以及从e~z之间的任意字符
var a = s.match(r); 	// 返回数组["a","b","c","e","z"]


</script>
</body>
</html>
